<template>
  <view>
    <navigator url="/pages/login/index">
      <button type="default">跳转到新页面</button>
    </navigator>
  </view>
</template>
<script>
import { getTaskListApi } from '@/utils/task.js'
export default {
  data () {
    return {
      pageParams: {
        page: 1,
        pageSize: 10,
        status: 1,
      },
    }
  },
  onLoad () {
    // this.getTaskList()
  },

  methods: {
    async getTaskList () {
      const res = await getTaskListApi()
      console.log(res)
    },
  },
}
</script>
